#timer.py

from threading import Timer
import time

hours 	= 0
minutes = 0
seconds = 0

def printTime():
	global t, hours, minutes, seconds
	print (" %s : %s : %s" %(str(hours), str(minutes), str(seconds)))
	seconds += 1
	if seconds == 60:
		minutes += 1
		seconds = 1
	if minutes == 60:
		hours += 1
		minutes = 0
	if hours == 24:
		hours = 0
	t = Timer(1, printTime)
	t.start()

t = Timer(1, printTime)
t.start()

if input() == 'q':
	t.cancel()